//
//  CustomNavigationController.m
//  MemoryTasks
//
//  Created by Philippe Bouamriou on 20/05/10.
//  Copyright 2010 Philippe Bouamriou. All rights reserved.
//

#import "CustomNavigationController.h"


@implementation CustomNavigationController

- (UIViewController *)popViewControllerAnimated:(BOOL)animated {
   
   id theTopController = [self.viewControllers lastObject];
   
   if ([theTopController conformsToProtocol:@protocol(CustomNavigationControllerDelegate) ]) {
      [theTopController navigationControllerBackButtonPressed];
   }
   
   return [super popViewControllerAnimated:animated];
   
}


@end
